import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home', 
      component: () => import('@/views/Home.vue'),
      redirect: '/ljymes',
      children: [
        {
          path: '/device',
          name: 'Device',
          component: () => import('@/views/page/Device.vue'),
        },
        {
          path: '/sqdata',
          name: 'Sqdata',
          component: () => import('@/views/page/Sqdata.vue')
        },
        {
          path: '/ljymes',
          name: 'Ljymes',
          component: () => import('@/views/page/Ljymes.vue')
        }
      ]
    }
  ]
})
